<?php
/**
 * Serve up html for a post
 */
$guid = get_input('guid');

$view_type = ((!$guid || strlen($guid) == 0)? 'all' : 'owner');

$defaults = array(
		'on_sidebar' => true,
		'view_type' => $view_type,
);

if(!isset($options)) {
	$options = array();
}
$options = array_merge($defaults, $options);
if(!$guid || strlen($guid) == 0) {
	$content = elgg_list_golf_score($options);
} else {
	$options = array_merge($options, array('user_entity_id'=>$guid));
	$content = elgg_list_golf_score($options);
}
echo '<div>' . $content . '</div>';